package com.xhwl.data.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.dto.cent.sdata.SpaceFunctionTypeDTO;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.cent.sdata.SpaceFunctionType;
import com.xhwl.common.query.cent.sdata.SpaceFunctionTypeQuery;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author yf
 * @Description:
 * @Date Create in 9:42 2022/06/07
 */
@RestController
public interface ISpaceFunctionTypeService extends IService<SpaceFunctionType> {
    /**
     * 创建
     *
     * @param spaceFunctionTypeDTO
     * @return
     */
    @RequestMapping(value = "/space-function-type-service/create", method = RequestMethod.POST)
    ResultJson create(@RequestPart SpaceFunctionTypeDTO spaceFunctionTypeDTO);

    /**
     * 更新
     *
     * @param spaceFunctionTypeDTO
     * @return
     */
    @RequestMapping(value = "/space-function-type-service/update", method = RequestMethod.POST)
    ResultJson update(@RequestPart SpaceFunctionTypeDTO spaceFunctionTypeDTO);


    /**
     * 删除
     *
     * @param id
     * @return
     */
    @RequestMapping(value = "/space-function-type-service/delete", method = RequestMethod.POST)
    ResultJson delete(Integer id);

    /**
     * 分页
     *
     * @param spaceFunctionTypeQuery
     * @return
     */
    @RequestMapping(value = "/space-function-type-service/page", method = RequestMethod.POST)
    Page<SpaceFunctionTypeDTO> page(SpaceFunctionTypeQuery spaceFunctionTypeQuery);

    /**
     * 列表
     *
     * @param spaceFunctionTypeQuery
     * @return
     */
    @RequestMapping(value = "/space-function-type-service/list", method = RequestMethod.POST)
    List<SpaceFunctionTypeDTO> list(@RequestPart SpaceFunctionTypeQuery spaceFunctionTypeQuery);
}
